package com.zanfeng.signleplatform.dao.persistence.dao;

import com.zanfeng.signleplatform.base.BaseMapper;
import com.zanfeng.signleplatform.dao.persistence.entity.ResourceFile;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface ResourceFileMapper extends BaseMapper<ResourceFile> {

    //  列表查询
    List<com.zanfeng.signleplatform.api.result.modules.resourceFile.ResourceFileResult> queryResourceFileList(Map paramMap);

    //  根据ID列表逻辑删除
    void deleteResourceFileListByIdList(List<Integer> idList);

    // 根据用户名查询用户信息
    @Select("select * from wt_resource_file WHERE md5 = #{md5} limit 1")
    ResourceFile findResourceFileByMd5(@Param("md5") String md5);

    // 根据用户名查询用户信息
    List<ResourceFile> queryResourceFileListByMd5List(List<String> md5List);
}